package demo1;
class Base1{
    public void text1(){
        System.out.println("text1");

    }
}
class Derived1 extends Base1{
    public void text1(){
        System.out.println("Derived1::text1");
    }
    public void text2(){
        System.out.println("text2");
    }
    public void text3(){
        this.text1();
        super.text1();
        this.text2();
    }
    //1,在静态方法中不能访问非静态方法数据，不能使用this，super

}
public class Test4 {
    public static void main(String[] args) {
        Derived1 derived1=new Derived1();
        derived1.text3();
    }
}
